home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #3 / amigamamagazinepolishissue1998.iso / maksiu / lists / amoslist-0996.lzh / AMOSLIST / 000098_amos-request@svcs1.digex.net_Sat Sep 28 18:50:42 1996.msg < prev    next >
Internet Message Format  |  1996-10-01  |  3KB

  1. Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224]) by mail2.access.digex.net (8.7.6/8.7.3) with ESMTP id SAA07664 for <mcox@access.digex.net>; Sat, 28 Sep 1996 18:50:40 -0400 (EDT)
  2. Received: (from daemon@localhost) by svcs1.digex.net (8.7.6/8.7.3) id RAA15954 for amos-out; Sat, 28 Sep 1996 17:26:50 -0400 (EDT)
  3. Received: from mail2.access.digex.net (mail2.access.digex.net [205.197.247.3]) by svcs1.digex.net (8.7.6/8.7.3) with ESMTP id RAA15948 for <amos-list@svcs1.digex.net>; Sat, 28 Sep 1996 17:26:49 -0400 (EDT)
  4. Received: from relay-2.mail.demon.net (disperse.demon.co.uk [158.152.1.77]) by mail2.access.digex.net (8.7.6/8.7.3) with SMTP id RAA05501 for <amos-list@access.digex.net>; Sat, 28 Sep 1996 17:25:39 -0400 (EDT)
  5. Received: from post.demon.co.uk ([(null)]) by relay-2.mail.demon.net  id ad16278;
  6.           28 Sep 96 16:20 BST
  7. Received: from westmead.demon.co.uk ([158.152.130.21]) by relay-3.mail.demon.net
  8.            id aa13995; 28 Sep 96 16:17 BST
  9. From: Mark Carter <Mark@westmead.demon.co.uk>
  10. Organization: None Whatsoever
  11. To: amos-list@access.digex.net
  12. Date: Sat, 28 Sep 1996 16:16:13 +0000
  13. Subject: Scrolling problems...
  14. Reply-to: mark@westmead.demon.co.uk
  15. Priority: normal
  16. X-mailer: Pegasus Mail for Windows (v2.20)
  17. Message-ID: <843923842.13995.0@westmead.demon.co.uk>
  18. Status: O
  19. X-Status: 
  20.  
  21. Hi,
  22.  
  23. Does anyone know the best way to do hardware scrolling...?
  24.  
  25. Now I'll explain my situation - because I guess its pretty important!
  26.  
  27. (I'm using autoback 0 and bob update off)
  28.  
  29. I've got a lowres 640x480 screen which I scroll in a 320x190 display, 
  30. about 15 bobs including a ball, which the scrolling follows. All of 
  31. this (including scrolling) was controlled by AMal proggies.
  32. To begin with I was running the game at 25Hz using the following 
  33. method:
  34.  
  35. do
  36.    [program code taking between 0.5 and 1.5 vbls]
  37.    Synchro:wait vbl:bob update
  38.    rem next line makes sure that we only wait a vbl if we need to
  39.    If less-than-2-vbls since last last loop then wait vbl
  40.    rem I've tried removing the line above and it doesnt make the 
  41.           display any smoother
  42. loop
  43.  
  44. This however, is very jerky.  So I then decided to make the ball move 
  45. at 50Hz by taking it out of the Amal bank and putting the new Amos 
  46. code just BEFORE each Vbl.
  47.  
  48. This was even worse!  However, when I ran the program by freezing the 
  49. scrolling amal program, all was ok.  I think the problem is that 
  50. while EVERYTHING visible is updated in one smooth burst during the 
  51. Bob Update command, the scrolling is done during the Synchro command. 
  52. So, in effect, there are 2 changes to-the-eye every Vbl.
  53.  
  54. Please Help!
  55.  
  56. I hope this all made some sense!
  57.  
  58. Cheers,
  59.         Mark
  60.  
  61. Mailto:mark@westmead.demon.co.uk, exet0007@sable.ox.ac.uk
  62. URL:   http://www.westmead.demon.co.uk/mark/index.htm